package fun.util.daohelper.junk;

import fun.util.daohelper.AbstractEntity;

/**
 * Author: bin
 * Date: Jan 23, 2006
 * Time: 10:10:16 PM
 */
public class Junk extends AbstractEntity<JunkPK> {

    EnumField enumField;
    String fieldA, fieldB;

    int intValue;

    public Junk( String fieldA, int intValue ) {
        setFieldA( fieldA );
        setIntValue( intValue );
    }


    public Junk() {

    }

    public EnumField getEnumField() {
        return enumField;
    }

    public void setEnumField(EnumField enumField) {
        this.enumField = enumField;
    }

    public String getFieldA() {
        return fieldA;
    }

    public void setFieldA(String fieldA) {
        this.fieldA = fieldA;
    }

    public String getFieldB() {
        return fieldB;
    }

    public void setFieldB(String fieldB) {
        this.fieldB = fieldB;
    }


    public int getIntValue() {
        return intValue;
    }

    public void setIntValue(int intValue) {
        this.intValue = intValue;
    }

    public String toString() {
        return "fieldA: " + fieldA + " fieldB: " + fieldB + " intValue: " + intValue;
    }

    /*
    public boolean equals( Object obj ) {
        if ( !(obj instanceof Junk) ) {
            return false;
        }
        return equals( (Junk)obj );
    }

    public boolean equals( Junk junk ) {
        return junk.enumField == enumField && junk.fieldA == fieldA && junk.fieldB == fieldB && junk.intValue == intValue;
    }
    */
}

